<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>

	<script>

		var f = function() {
			// var a = 1;
			// b = 2;
			var a = b = 1;
		};

		f();

		console.log(b);
		console.log(a);
		
	</script>
</body>
</html>